# 使用官方 JDK 镜像
FROM eclipse-temurin:17-jdk

# 设置容器内工作目录
WORKDIR /include-project

# 拷贝 jar 包
COPY target/chat-platform-1.0-SNAPSHOT.jar /include-project/

# 启动命令
ENTRYPOINT ["java", "-jar", "chat-platform-1.0-SNAPSHOT.jar", "--spring.profiles.active=prod"]